package cn.stylefeng.guns.modular.system.repository;

import cn.stylefeng.guns.modular.system.model.DeviceTotal;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceTotalRepository extends MongoRepository<DeviceTotal, String> {
    List<DeviceTotal> findAllByDeviceid(String deviceid);
    List<DeviceTotal>findAllByAction(String action);
    List<DeviceTotal> findAllByDate(Long date);
    List<DeviceTotal> findAllByDeviceidAndAction(String deviceid,String action);
    List<DeviceTotal> findAllByDeviceidAndDate(String deviceid,Long date);
    List<DeviceTotal> findAllByDateAndAction(Long date,String action);
    List<DeviceTotal> findAllByDeviceidAndActionAndDate(String deviceid,String action,Long date);

}
